<div class="nav">
    <a href="{:U('index')}">资讯列表</a>
    <a class="sel" href="#">编辑资讯</a>
</div>
<div class="add">
    <form method="post" action="" >
        <table class="table_add">
            <tr>
                <td width="100px">所属类别</td>
                <td><select name="help_id" id="help_id" class="sel1">
                        <option value="0" >选择类别</option>
                        <foreach name="news_cat" item="item">
                            <option value="{$item.help_id}" >{$item.help_name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>
            <tr>
                <td width="100px">新闻标题</td>
                <td><input class="input1" type="text" name="title" id="title" value="{$model.title}" style="width:400px" /> <label class="msg">*</label></td>
            </tr>
            <tr>
                <td>详细内容</td>
                <td>
                 <include file="Public/kindeditor" id="detail" value="{$model['detail']}" thumbw="12000" thumbh="12000"/>
               </td>
            </tr>
            <tr>
                <td width="100px">顺序编号</td>
                <td><input class="input1" type="text" name="order_id" id="order_id" value="{$model.order_id}" style="width:60px" /> <label class="msg">*</label></td>
            </tr>
            <tr>
                <td width="100px">是否显示</td>
                <td><select name="is_show" id="is_show" class="sel1">
                        <option value="1">显示</option>
                        <option value="0">不显示</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td width="100px">发布时间</td>
                <td><input onclick="WdatePicker({dateFmt: 'yyyy-MM-dd'})" class="date" type="text" name="create_time" id="create_time" value="{$model.create_time|date="Y-m-d",###}" /></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" class="btn1" value="提 交" /> &nbsp; <input class="btn3"  type="button" onclick="window.history.back()" value="返 回" /></td>
            </tr>
        </table>
        <input type="hidden" name="news_id" value="{$model.news_id}" />
    </form>
</div>
<script type="text/javascript">
    $(function() {
        $("#help_id").val('{$model.help_id}');
        $("#is_show").val('{$model.is_show}');
    })
</script>
